import { httpForm } from "@/service/network";

export const userLists = (data) => {
  return httpForm("/admin.php/admin/index", data);
};

export const userEdit = (data) => {
  return httpForm("/admin.php/admin/edit", data);
};

export const userAdd = (data) => {
  return httpForm("/admin.php/admin/add", data);
};

export const userDel = (data) => {
  return httpForm("/admin.php/admin/delete", data);
};

//获取当前用户信息
// export const getUserInfo = (data) => {
//   return httpForm("/admin.php/admin/info", data);
// };
export const getUserInfo = () => {
  return httpForm("/platform/admin/info");
};
